/**
 * Created by LiYunpeng on 11/22/14.
 */
$(document).ready(function() {
    updateDisplay();
    $(window).resize(function () {
        updateDisplay();
    });

    //$("#content").on("DOMSubtreeModified", function() {
    //    updateDisplay();
    //});

});

function updateDisplay() {
    var windowHeight = $(window).height();
    var windowWidth = $(window).width();

    $("body").height(windowHeight);

    $("#frame-layout-left").height(windowHeight - $("#frame-layout-top").height());
    $("#frame-layout-center").height(windowHeight - $("#frame-layout-top").height());
    $("#frame-layout-center").width(windowWidth - $("#frame-layout-left").width());

}